package com.wydstation.power.common;

import org.apache.rocketmq.client.producer.DefaultMQProducer;
import org.apache.rocketmq.client.producer.SendResult;
import org.apache.rocketmq.common.message.Message;
import org.apache.rocketmq.remoting.common.RemotingHelper;

import java.nio.ByteBuffer;

public class Producer {

    public static void main(String[] args) throws Exception {
        ByteBuffer allocate = ByteBuffer.allocate(10);
        allocate.put("1234567890".getBytes());
        byte b = allocate.get(3);
        System.out.println(allocate.get());

    }
}